package cn.gogetter.pojo;
import java.io.Serializable;

import com.alibaba.fastjson.JSON;
public class RetResult<T> {
	 
	   public int code;
	 
	   private String msg;
	 
	   private T data;
	 
	   public RetResult<T> setCode(RetCode retCode) {
	      this.code = retCode.code;
	      return this;
	   }
	 
	   public int getCode() {
	      return code;
	   }
	 
	   public RetResult<T> setCode(int code) {
	      this.code = code;
	      return this;
	   }
	 
	   public String getMsg() {
	      return msg;
	   }
	 
	   public RetResult<T> setMsg(String msg) {
	      this.msg = msg;
	      return this;
	   }
	 
	   public T getData() {
	      return data;
	   }
	 
	   public RetResult<T> setData(T data) {
	      this.data = data;
	      return this;
	   }
	 
	}